package com.freemalll.merchant.mapper.coopManagement;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freemalll.merchant.domain.dto.coopManagement.AssetLogPageDto;
import com.freemalll.merchant.domain.entity.coopManagement.MerAssetLog;
import com.freemalll.merchant.domain.vo.coopManagement.AssetRateLogPageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 映射层。
 *
 * @author songshixiong
 * @since 2025-05-19
 */
@Mapper
public interface MerAssetLogMapper extends BaseMapper<MerAssetLog> {

    @Select(" select add_time as createTime,add_emp_name as  createName,operation_type,log_desc from mer_asset_log where delete_flag = 0 and relation_id = #{dto.relationId} order by add_time desc ")
    Page<AssetRateLogPageVo> pageSearch(Page page, @Param("dto") AssetLogPageDto dto);
}
